package org.jeecg.modules.qyxx.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.github.jeffreyning.mybatisplus.service.MppServiceImpl;
import org.jeecg.modules.qyxx.entity.TycLsgsxxSyfw;
import org.jeecg.modules.qyxx.mapper.TycLsgsxxSyfwMapper;
import org.jeecg.modules.qyxx.service.ITycLsgsxxSyfwService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 历史工商信息_商业范围
 * @Author: jeecg-boot
 * @Date:   2022-02-18
 * @Version: V1.0
 */
@Service
//@DS("fk_oracle")
public class TycLsgsxxSyfwServiceImpl extends MppServiceImpl<TycLsgsxxSyfwMapper, TycLsgsxxSyfw> implements ITycLsgsxxSyfwService {

    @Override
    public List<TycLsgsxxSyfw> listByShxydmAndTjnd(String djxh,String tjnd) {
        LambdaQueryWrapper<TycLsgsxxSyfw> wrapper = Wrappers.lambdaQuery(TycLsgsxxSyfw.class);
        wrapper.eq(TycLsgsxxSyfw::getShxydm,djxh)
        .likeRight(TycLsgsxxSyfw::getTime,tjnd);
        return list(wrapper);
    }

    @Override
    public List<TycLsgsxxSyfw> listByShxydm(String djxh) {
        LambdaQueryWrapper<TycLsgsxxSyfw> wrapper = Wrappers.lambdaQuery(TycLsgsxxSyfw.class);
        wrapper.eq(TycLsgsxxSyfw::getShxydm,djxh);
        return list(wrapper);
    }
}
